package com.jiaquyun.jcyx.jetpack.mode

import android.app.Application
import androidx.lifecycle.MutableLiveData
import com.jiaquyun.jcyx.base.BaseViewModel
import com.jiaquyun.jcyx.entity.AddressListResponse
import com.jiaquyun.jcyx.entity.ArticleDetailsResponse
import com.jiaquyun.jcyx.entity.ArticleListResponse
import com.jiaquyun.jcyx.jetpack.api.ArticleRepository
import com.jiaquyun.jcyx.jetpack.api.NotifyRepository
import com.jiaquyun.jcyx.jetpack.api.UserRepository
import com.module.lemlin.http.HttpResponseBody
import com.module.lemlin.http.HttpResponseData
import com.module.lemlin.http.SubscribeViewModel

class NotifyViewModel(application: Application) : BaseViewModel(application) {

    private val mNotifyRepository = NotifyRepository()

    val notifyListLiveData = MutableLiveData<HttpResponseBody<HttpResponseData>>()
    fun notifySystem(type: Int) {
        setRxLifeScope(SubscribeViewModel(notifyListLiveData)) {
            mNotifyRepository.notifySystem(type.toString(), "1", "20")
        }
    }
}